package homework_07.home_01;

public class Bus {
    private int x;
    private int cent;
    private int days;

    public Bus() {
        this.x = x;
        if(x==1){
            this.cent = 500;
        }
        else {
            this.cent = 1200;
        }
    }

    public Bus(int x) {
        this.x = x;
        if(x==1){
            this.cent = 500;
        }
        else {
            this.cent = 1200;
        }

    }

    public int getX() {
        return x;
    }

    public void setX(int x) {
        this.x = x;
    }

    public int getDays() {
        return days;
    }

    public void setDays(int days) {
        this.days = days;
    }

    public void calculate(){
        int cal;
        cal = cent*days;

        System.out.println("您的租金总共为："+cal);
    }
}
